<?php

namespace Database\Seeders;

use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
use App\Models\WeddingDress;

class DatabaseSeeder extends Seeder
{
    /**
     * Seed the application's database.
     *
     * @return void
     */
    public function run()
    {
        DB::table('wedding_dress_types')->insert(
            ['typename' => '中式'],
        );
        DB::table('wedding_dress_types')->insert(
            ['typename' => '西式'],
        );
        DB::table('users')->insert(
            [
                'username' => '蒋佳峰',
                'password' => '123456',
            ]
        );
        DB::table('admins')->insert(
            [
                'adminname' => 'admin',
                'password' => bcrypt("123456"),
            ]
        );

        WeddingDress::factory(6)->create();
    }
}
